<!DOCTYPE html>
<html lang="zh-cmn-Hans" prefix="og: http://ogp.me/ns#" class="han-init">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
    <title><?php echo isset($page_data['page_title']) ? $page_data['page_title'] : ""; ?></title>
    <link rel="stylesheet" href="/static/vendor/primer-css/css/primer.css">
    <link rel="stylesheet" href="/static/vendor/primer-markdown/dist/user-content.min.css">
    <link rel="stylesheet" href="/static/vendor/octicons/octicons/octicons.css">
    <link rel="stylesheet" href="/static/css/components/collection.css">
    <link rel="stylesheet" href="/static/css/components/repo-card.css">
    <link rel="stylesheet" href="/static/css/sections/repo-list.css">
    <link rel="stylesheet" href="/static/css/sections/mini-repo-list.css">
    <link rel="stylesheet" href="/static/css/components/boxed-group.css">
    <link rel="stylesheet" href="/static/css/globals/common.css">
    <link rel="stylesheet" href="/static/vendor/share.js/dist/css/share.min.css">
    <link rel="stylesheet" href="/static/css/globals/responsive.css">
    <link rel="stylesheet" href="/static/css/posts/index.css">
    <link rel="stylesheet" href="/static/css/globals/page_navigation.css">
    <!-- Latest compiled and minified CSS -->

    <link rel="stylesheet" href="/static/css/pages/index.css">



    <link rel="canonical" href="http://www.ossdn.com/">
    <link rel="alternate" type="application/atom+xml" title="思想黑客" href="http://www.ossdn.com/feed.xml">
    <link rel="shortcut icon" href="http://www.ossdn.com/favicon.ico">

    <meta name="keywords" content="<?php echo isset($page_data['keywords']) ? $page_data['keywords'] : ""; ?>">
    <meta name="description" content="<?php echo isset($page_data['description']) ? $page_data['description'] : ""; ?>">




    <meta property="og:url" content="<?php echo $page_data['url']; ?>">
    <meta property="og:site_name" content="<?php echo $page_data['site_name']; ?>">
    <meta property="og:type" content="article">
    <meta property="og:locale" content="zh_CN" />

    <script src="https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
    <script type="text/javascript">
    function toggleMenu() {
        var nav = document.getElementsByClassName("site-header-nav")[0];
        if (nav.style.display == "inline-flex") {
          nav.style.display = "none";
        } else {
          nav.style.display = "inline-flex";
        }
    }
    </script>
</head>
<body <?php if (isset($page_data['is_home']) && $page_data['is_home'] == true): ?>class="home" data-mz="home"<?php endif?> >
    <header class="site-header">
        <div class="container">
            <h1><a href="<?php echo isset($page_data['site_url']) ? $page_data['site_url'] : ""; ?>" title="<?php echo isset($page_data['site_name']) ? $page_data['site_name'] : ""; ?>"><span class="octicon octicon-mark-github"></span><?php echo isset($page_data['site_name']) ? $page_data['site_name'] : ""; ?></a></h1>
            <button class="collapsed mobile-visible" type="button" onclick="toggleMenu();">
              <span class="icon-bar"></span>
              <span class="icon-bar"></span>
              <span class="icon-bar"></span>
            </button>
            <nav class="site-header-nav" role="navigation">
                <?php $menu_data = get_menu_menu();?>
                <?php foreach ($menu_data as $menu): ?>
                <a href="<?php echo $menu['menu_url']; ?>" class=" site-header-nav-item" target="<?php echo $menu['menu_target']; ?>" title="<?php echo $menu['menu_name']; ?>"><?php echo $menu['menu_name']; ?></a>
                <?php endforeach?>
            </nav>
        </div>
    </header>
    <!-- / header -->